<template>
  <div>
    <Life v-if="bl"></Life>
    <hr>
    <hr>
    <hr>
    <button @click="bl = false" >点击销毁组件</button>
  </div>
</template>

<script>
import Life from './components/Life.vue'
export default {
  data () {
    return {
      bl: true
    }
  },
  components:{
    Life
  }
}
</script>

<style>

</style>